export const mixin = {
  data(){
    return{
      a:1
    }
   },
  created() {
  },
  mounted(){
  },
  methods: {
    Notice(title='注意',txt='',type="info"){
      this.$notify({
        title: title,
        message: txt,
        type:type,
        duration: 1600
      });
    },
    CheckForm(formname=''){
      return new Promise((resolve,reject)=>{
        this.$refs[formname].validate(valid => {
          if(valid) resolve(true)
          else resolve(false) 
        })
        reject()
      })
    }
  }
};